@charset "UTF-8";
@import url("../common/common.css");
@import url("../common/scrollbar_dark.css");
@import url("../common/table_dark.css");

.main-container {
    width: 100%;
    height: calc(100% - 66px);
    display: flex;

    .table-container {
        flex: 1;
        height: 100%;
        padding: 20px 40px;

        .tab-nav {
            height: 40px;
            display: flex;
            margin-bottom: 24px;

            li {
                width: auto;
                height: 40px;
                font-size: 16px;
                line-height: 40px;
                letter-spacing: 1px;
                color: #8c9bae;
                padding: 0 4px;
                cursor: pointer;
                margin-right: 24px;

                &:hover {
                    color: #21e2ff;
                }

                &.active {
                    border-bottom: 2px solid #21e2ff;
                    color: #21e2ff;
                }
            }
        }

        .tab-wrapper {
            width: 100%;
            height: calc(100% - 64px);
            display: flex;
            flex-direction: column;

            .chart-content {
                flex: 1;
                height: 100%;
                display: flex;
                margin-bottom: 24px;

                &:last-child {
                    margin-bottom: 0;
                }

                .chart-wrap {
                    width: 100%;
                    flex: 1;
                    background-color: rgba($color: #0d1c3b, $alpha: 0.5);
                    border: solid 1px #13567c;
                    display: flex;
                    flex-direction: column;
                    padding: 16px;
                    position: relative;

                    .chart-title {
                        font-size: 20px;
                        font-weight: bold;
                        letter-spacing: 2px;
                        color: #ffffff;
                        height: 24px;
                        line-height: 24px;
                        flex-shrink: 0;

                        &::before {
                            content: "";
                            display: inline-block;
                            width: 3px;
                            height: 21px;
                            background-color: #ffdd56;
                            margin-right: 10px;
                            position: relative;
                            top: 3px;
                        }
                    }

                    .time-type {
                        position: absolute;
                        right: 20px;
                        top: 5px;
                        // width: 100%;
                        height: 34px;
                        margin: 8px auto;
                        flex-shrink: 0;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        &>li {
                            width: 83px;
                            height: 34px;
                            line-height: 34px;
                            text-align: center;
                            background: url('/images/system/label.png') no-repeat;
                            margin-right: 12px;
                            cursor: pointer;
                            color: #c2d1df;
                            &:last-child {
                                margin-right: 0;
                            }

                            &:hover {
                                background: url('/images/system/label_hover.png');
                            }

                            &.active {
                                background: url('/images/system/label_hover.png');
                                color: #ffffff;
                                text-shadow: 0px 0px 10px #ffffff;
                            }
                        }
                    }

                    .select-type {
                        position: absolute;
                        top: 16px;
                        right: 16px;
                    }

                    .select2-container {
                        position: absolute;
                        right: 16px;
                        top: 16px;
                        z-index: 999;
                    }

                    .chart-box {
                        margin-top: 40px;
                        width: 100%;
                        flex: 1;
                    }
                }

                .chart-wrap+.chart-wrap {
                    margin-left: 24px;
                }
            }
        }
    }
    #tree1 {
        flex-shrink: 0;
        margin-left: -24px;
        margin-top: 20px;
        width: 250px;
        height: calc(100% - 104px);
        background-color: rgba($color: #071b35, $alpha: 0.8);
        border: 1px solid #156a97;
        padding: 24px 16px;

        .level0{
            margin-left: -10px;
        }

        .title-text {
            font-size: 16px;
            color: #ffffff;
            margin-bottom: 20px;
        }

        .ztree {
            height: calc(100% - 50px);
            overflow-y: auto;

            li>a {
                color: #c2d1df;

                &.curSelectedNode {
                    color: #21e2ff;
                }
            }
        }

        .ztree_operate_wrapper {
            position: relative;
            float: right;
        }

        .ztree li .ztree-operate {
            position: absolute;
            top: -8px;
            right: 8px;
            margin-left: 10px;
            height: 30px;
            line-height: 30px;
            padding-left: 5px;
            padding-right: 5px;
            color: #06b6ff;
        }

        .ztree-operate:hover {
            color: #06b6ff;
        }
        
        .node_name {
            width: 120px;
            display: inline-block;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}